﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LogSystem
{
    // ILogObserver.cs
    public interface ILogObserver
    {
        void Update(string message);
    }

    // EmailNotifier.cs
    public class EmailNotifier : ILogObserver
    {
        public void Update(string message)
        {
            Console.WriteLine($"Sending email with log message: {message}");
        }
    }
}
